package src.edu.wayne.cs.csc4110.hw6.implementations.userPanels;

import javax.swing.JPanel;

import src.edu.wayne.cs.csc4110.hw6.implementations.stateMachine.StateMachine;

public abstract class StateMachinePanel extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6385216527943032099L;
	protected StateMachine stateMachine;
	protected String strEmail = new String();
	protected String strUserPassword = new String();
	
	StateMachinePanel(StateMachine stateMachine){
		this.stateMachine = stateMachine;
	}

	protected StateMachine getStateMachine() {
		return stateMachine;
	}

	protected void setStateMachine(StateMachine stateMachine) {
		this.stateMachine = stateMachine;
	}

	protected boolean checkLogin() {

		return stateMachine.login(strEmail, strUserPassword);
	}
	

}
